package view_alertwebhook

import (
	"github.com/gin-gonic/gin"
	"time"
)

func ConfigRoutes(r *gin.Engine) {
	base := r.Group("/")
	{
		base.GET("/now", GetNowTs)
		base.POST("/receive", AlertReceive)
		base.GET("/silence", AlertSilence)
		base.GET("/unsilence", AlertUnSilence)
	}

}
func GetNowTs(c *gin.Context) {
	c.String(200, time.Now().Format("2006-01-02 15:04:05"))
}
